# 定义goods类
class Goods:
    def __init__(self):
        self.name = '商品'

    def fn(self):
        return self.name


# 定义phone类
class Phone(Goods):
    def __init__(self):
        self.name = '手机'

    def fn(self):
        return self.name


phone1 = Phone()
print(phone1.fn())